﻿package mortal.game.view.skill.panel.render
{
    import com.mui.controls.*;
    import com.mui.utils.*;
    import mortal.common.*;
    import mortal.game.cache.*;

    public class SkillRune extends GSprite
    {
        private var _runes:Array;

        public function SkillRune()
        {
            return;
        }// end function

        public function updateInfos() : void
        {
            var _loc_2:SkillRuneItem = null;
            var _loc_1:int = 0;
            while (_loc_1 < 4)
            {
                
                _loc_2 = this._runes[_loc_1];
                _loc_2.itemData = Cache.instance.pack.runeBag.getItemDataByPoseType((_loc_1 + 1));
                _loc_1++;
            }
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            var _loc_2:SkillRuneItem = null;
            super.createDisposedChildrenImpl();
            this._runes = [];
            var _loc_1:int = 0;
            while (_loc_1 < 4)
            {
                
                _loc_2 = UICompomentPool.getUICompoment(SkillRuneItem);
                this._runes.push(_loc_2);
                _loc_2.x = _loc_1 * 118;
                this.addChild(_loc_2);
                _loc_1++;
            }
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            DisplayUtil.delNotUse(this._runes, 0);
            this._runes = null;
            return;
        }// end function

    }
}
